import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/friend_apply_list_entity.dart';

FriendApplyListEntity $FriendApplyListEntityFromJson(Map<String, dynamic> json) {
	final FriendApplyListEntity friendApplyListEntity = FriendApplyListEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		friendApplyListEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		friendApplyListEntity.code = code;
	}
	final List<FriendApplyListData>? data = jsonConvert.convertListNotNull<FriendApplyListData>(json['data']);
	if (data != null) {
		friendApplyListEntity.data = data;
	}
	return friendApplyListEntity;
}

Map<String, dynamic> $FriendApplyListEntityToJson(FriendApplyListEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] =  entity.data?.map((v) => v.toJson()).toList();
	return data;
}

FriendApplyListData $FriendApplyListDataFromJson(Map<String, dynamic> json) {
	final FriendApplyListData friendApplyListData = FriendApplyListData();
	final int? friendId = jsonConvert.convert<int>(json['friendId']);
	if (friendId != null) {
		friendApplyListData.friendId = friendId;
	}
	final String? friendName = jsonConvert.convert<String>(json['friendName']);
	if (friendName != null) {
		friendApplyListData.friendName = friendName;
	}
	final String? picUrl = jsonConvert.convert<String>(json['picUrl']);
	if (picUrl != null) {
		friendApplyListData.picUrl = picUrl;
	}
	final dynamic? friendType = jsonConvert.convert<dynamic>(json['friendType']);
	if (friendType != null) {
		friendApplyListData.friendType = friendType;
	}
	final dynamic? createTime = jsonConvert.convert<dynamic>(json['createTime']);
	if (createTime != null) {
		friendApplyListData.createTime = createTime;
	}
	return friendApplyListData;
}

Map<String, dynamic> $FriendApplyListDataToJson(FriendApplyListData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['friendId'] = entity.friendId;
	data['friendName'] = entity.friendName;
	data['picUrl'] = entity.picUrl;
	data['friendType'] = entity.friendType;
	data['createTime'] = entity.createTime;
	return data;
}